package com.code.soulspring;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 演示bean的生命周期
 *
 * @author lyf
 * @date 2022-09-23 23:04
 */
@SpringBootApplication
public class SoulSpringApplication2 {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(SoulSpringApplication2.class, args);
        // 这里关闭，来保证演示的是整个生命周期
        context.close();
    }
}
